<?php
class DatabaseConnection extends mysqli {

    public function __construct($db_host, $db_user, $db_password, $db_name, $db_port){
        parent::__construct($db_host, $db_user, $db_password, $db_name, $db_port);
        //parent::query("SET NAMES \"utf8\";");
        //parent::query("SET CHARACTER SET 'utf8'");
        //parent::query("SET SESSION collation_connection = 'utf8_general_ci'");


        if (mysqli_connect_error()){
            die("Error (". mysqli_connect_errno().") ". mysqli_connect_error());
        }
    }
}